package com.yfp.tissue.service;

import com.yfp.common.core.domain.R;
import com.yfp.tissue.domain.entity.PositionSharing;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author admin
* @description 针对表【position_sharing(点位分成表)】的数据库操作Service
* @createDate 2024-06-13 10:54:46
*/
public interface PositionSharingService extends IService<PositionSharing> {

    // 批量插入
    void insertAll(List<PositionSharing> positionSharings);


    /**
     * 删除
     */
    void delByPositionId(String positionId);

    /**
     * 查询
     * @param positionId
     * @return
     */
    List<PositionSharing> findByPositionId(String positionId);

    /**
     * 根据点位id获取投资人列表
     * @param positionId
     * @return
     */
    List<PositionSharing> getPositionSharings(String positionId);

    /**
     * 批量查询投资人列表
     * @param positionIds
     * @return
     */
    List<PositionSharing> getByPositionIds(List<String> positionIds);

    List<PositionSharing> selectSharings(PositionSharing positionSharing);
}
